
package com.scs.application.modules.cert.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.modules.cert.entity.CertificateRepository;
import com.scs.application.modules.cert.entity.CertificateRepositoryHistory;
import com.scs.application.modules.cert.request.CertificateRepositoryHistoryQueryRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 资质历史版本 mapper对象
 *
 */
@Mapper
public interface CertificateRepositoryHistoryMapper extends BaseMapper<CertificateRepositoryHistory> {

    IPage<CertificateRepositoryHistory> page(IPage page, @Param("request") CertificateRepositoryHistoryQueryRequest request);

    /***
     * @Description:  资质预警，分页查询
     */
    Page<CertificateRepositoryHistory> pageWarn(IPage page, @Param(Constants.WRAPPER) QueryWrapper<CertificateRepository> wrapper, @Param("certificateRepositoryId") Map<String,Object> params, @Param("userParam") Map<String,Object> userParam);
}
